/**
 * @author Zhuang
 * @since 2023/9/26
 */
public class Util {
    private static final IPLocation IP_LOCATION;

    static {
        try {
            IP_LOCATION = new IPLocation("/Users/luxcis/Downloads/qqwry.dat");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

    public static Location getLocationByIp(String ip) {
        return IP_LOCATION.fetchIPLocation(ip);
    }
}
